package com.wyman.user_center_back.utils;

import com.wyman.user_center_back.domain.User;

/**
 * @author Wyman
 * @date 2024/9/4
 */
public class UserUtils {

    public static User getSecUser(User originUser){
        User user = new User();
        user.setId(originUser.getId());
        user.setUserAccount(originUser.getUserAccount());
        user.setAvatarUrl(originUser.getAvatarUrl());
        user.setUsername(originUser.getUsername());
        user.setUpdatetime(originUser.getUpdatetime());
        user.setCreatetime(originUser.getCreatetime());
        user.setUserRole(originUser.getUserRole());
        return user;
    }


}
